//
//  MJTableView.h
//  GoodEit
//
//  Created by ihope99 on 2017/8/10.
//  Copyright © 2017年 GZX. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MJTableViewDelegate <NSObject>

@optional;
-(void)MjRoadMoreAction;
@optional;
-(void)MjReloadAction;

@end



@interface MJTableView : UITableView

@property (nonatomic,weak)id<MJTableViewDelegate> mjDelegate;

@property (nonatomic,strong)id del;
/// 是否添加刷新header 默认YES
@property (nonatomic,assign)BOOL isAddHeader;
///是否添加刷新fooder 默认YES
@property (nonatomic,assign)BOOL isAddFooter;
///是否显示无数据提示 默认YES
@property (nonatomic,assign)BOOL isNoMoreData;
///是否显示无数据提示中间部分View 默认YES
@property (nonatomic,assign)BOOL isNoMoreView;
/// 是否允许点击刷新 默认YES 可修改默认值
@property (nonatomic,assign)BOOL isRefreshClick;
/// 无数据提示文字
@property (nonatomic,strong)NSString *norText;
/// 无数据提示图片
@property (nonatomic,strong)UIImage *norImage;


/// 下拉刷新 回调
@property (nonatomic,copy)void(^mjRefreshDataBlock)(void);
/// 下拉加载 回调
@property (nonatomic,copy)void(^mjLoadingMoreDataBlock)(void);
@property (nonatomic,strong)NSMutableDictionary *cacheHeightDict;
///开始刷新
-(void)beginRefreshing;
///结束刷新
-(void)endRefresh;


@end
